package com.sjz.bookmark.action;

import com.intellij.ide.bookmarks.Bookmark;
import com.intellij.ide.bookmarks.BookmarkManager;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.Messages;

public class DeleteBookmarkAction extends AnAction {
    @Override
    public void actionPerformed(AnActionEvent e) {
        Bookmark bookmark = getSelectedBookmark(e);
        if (bookmark != null) {
            int result = Messages.showYesNoDialog(
                "Delete bookmark '" + bookmark.getDescription() + "'?",
                "Delete Bookmark", Messages.getQuestionIcon());
            
            if (result == Messages.YES) {

            }
        }
    }

    private Bookmark getSelectedBookmark(AnActionEvent e) {
        return null;
    }
}